<?php
namespace app\home\model;

use think\Model;

class Yactive extends Model{

    public function active(){
        return $this->hasOne('Active', 'id', 'active_id', [], 'LEFT')->setEagerlyType(0);
    }

    public function active1(){
        return $this->hasOne('Active', 'id', 'active_id');
    }
}